package com.itheima.demo3;

public class TestExtends {
    public static void main(String[] args) {
//        C c = new C(99,"name",23);
        B b = new C();

        C c = (C)b;
        c.method();

        B b1 = new B(11,"dd");

        b1.method();
        System.out.println("---------");
        b.show();
        System.out.println("---------");
        b.method();

        b.test();
    }

}
